const { Schema, model } = require('mongoose');

const classesSchema = new Schema({
    
    name: String,
    subjectsId: {
        type: Schema.Types.ObjectId,
        ref: 'subjectsModel',  // 设置需要关联的专业集合的模型名称
    }
}, { versionKey: false })

module.exports.classesModel = model('classesModel', classesSchema, 'classes');